package hcn.protocol.registration.xml.req;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * 科室信息查询-响应消息(成功)
 *
 * @author neoLin - 2023-02-03 11:11
 */
@XmlRootElement(name = "Data")
public class ListDepartmentXmlResponse {
    /**
     * 返回结果集
     */

    private List<ResultQuantity> resultQuantityList;

    @XmlElementWrapper(name = "ResultQuantityList")
    @XmlElement(name = "ResultQuantity")
    public List<ResultQuantity> getResultQuantityList() {
        return resultQuantityList;
    }

    public void setResultQuantityList(List<ResultQuantity> resultQuantityList) {
        this.resultQuantityList = resultQuantityList;
    }

    @XmlRootElement(name = "Dept")
    public static class Dept {

        /**
         * 坐诊科室代码
         */
        private String deptCode;
        /**
         * 挂号科室名称
         */
        private String deptName;
        /**
         * 就诊地址
         */
        private String admitAddress;
        /**
         * 科室电话号码
         */
        private String contactTelephone;

        @XmlElement(name = "DeptCode")
        public String getDeptCode() {
            return deptCode;
        }

        public void setDeptCode(String deptCode) {
            this.deptCode = deptCode;
        }

        @XmlElement(name = "DeptName")
        public String getDeptName() {
            return deptName;
        }

        public void setDeptName(String deptName) {
            this.deptName = deptName;
        }

        @XmlElement(name = "AdmitAddress")
        public String getAdmitAddress() {
            return admitAddress;
        }

        public void setAdmitAddress(String admitAddress) {
            this.admitAddress = admitAddress;
        }

        @XmlElement(name = "ContactTelephone")
        public String getContactTelephone() {
            return contactTelephone;
        }

        public void setContactTelephone(String contactTelephone) {
            this.contactTelephone = contactTelephone;
        }
    }

    @XmlRootElement(name = "ResultQuantity")
    public static class ResultQuantity {

        /**
         * 上级科室
         */
        private String parentDept;
        /**
         * 上级科室名称
         */
        private String parentDeptName;
        /**
         * 科室介绍
         */
        private String deptInformation;
        /**
         * 医疗机构组织机构名称
         */
        private String authorOrganizationName;
        /**
         * 医疗机构组织机构代码
         */
        private String authorOrganization;
        /**
         * 挂号科室集合
         */
        private List<Dept> deptList;

        @XmlElement(name = "ParentDept")
        public String getParentDept() {
            return parentDept;
        }

        public void setParentDept(String parentDept) {
            this.parentDept = parentDept;
        }

        @XmlElement(name = "ParentDeptName")
        public String getParentDeptName() {
            return parentDeptName;
        }

        public void setParentDeptName(String parentDeptName) {
            this.parentDeptName = parentDeptName;
        }

        @XmlElement(name = "DeptInformation")
        public String getDeptInformation() {
            return deptInformation;
        }

        public void setDeptInformation(String deptInformation) {
            this.deptInformation = deptInformation;
        }

        @XmlElement(name = "AuthorOrganizationName")
        public String getAuthorOrganizationName() {
            return authorOrganizationName;
        }

        public void setAuthorOrganizationName(String authorOrganizationName) {
            this.authorOrganizationName = authorOrganizationName;
        }

        @XmlElement(name = "AuthorOrganization")
        public String getAuthorOrganization() {
            return authorOrganization;
        }

        public void setAuthorOrganization(String authorOrganization) {
            this.authorOrganization = authorOrganization;
        }

        @XmlElementWrapper(name = "DeptList")
        @XmlElement(name = "Dept")
        public List<Dept> getDeptList() {
            return deptList;
        }

        public void setDeptList(List<Dept> deptList) {
            this.deptList = deptList;
        }
    }

}
